﻿<?php
include_once('common/header.php');	
if($AppUI->id <=0) {
	Vfriend_Function::setError($arrError[9]);
	Vfriend_Function::redirect(HOST_VFRIEND);
}
$objBlog 	= new Blog();
$strRefer	= isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : LINK_BLOG;		
$intBlogId	= $objRequest->getParam('blogid', 0);
$intHexId	= $objRequest->getParam('uid', 0);
if($intHexId == $AppUI->hex) {
	$arrRow		= $objBlog->get($intBlogId);
	$this->view->row	 	= $arrRow;
	$this->view->refer	 	= $strRefer;
	$this->view->arrPerm 	= $arrPerm;
	$this->view->arrStopCmt	= $arrStopCmt;
} else {
	Vfriend_Function::setError($arrError[8]);
	if($AppUI->id > 0) {
		Vfriend_Function::redirect($strRefer);
	} else {
		Vfriend_Function::redirect(LINK_BLOG);
	}
}
?>